package org.sws.domain.strategy.service.rule.chain;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author sws
 * @Date 2025/2/24 16:05
 * @description: 抽奖策略责任链抽象类
 */
@Slf4j
public abstract class AbstractLogicChain implements ILogicChain {

    private ILogicChain next;
    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }

    @Override
    public ILogicChain next() {
        return next;
    }

    /*获取自身的ruleModel值*/
    protected abstract String ruleModel();
}
